import request from '@/utils/request'


export function billPage(data){
  return request({
    url: '/imageCrawler/billPage',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'post',
    data: data
  })
}

export function billDetailPage(data){
  return request({
    url: '/imageCrawler/billDetailPage',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'post',
    data: data
  })
}

export function save(data){
  return request({
    url: '/imageCrawler/save',
    method: 'post',
    data: data
  })
}

export function update(data){
  return request({
    url: '/imageCrawler/update',
    method: 'post',
    data: data
  })
}

export function submitTaskById(data){
  return request({
    url: '/imageCrawler/submitTaskById',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'post',
    data: data
  })
}

export function crawlAgain(data){
  return request({
    url: '/imageCrawler/crawlAgain',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'post',
    data: data
  })
}

export function setBlackUrlListByItem(data){
  return request({
    url: '/imageCrawler/setBlackUrlListByItem',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'post',
    data: data
  })
}

export function deleteImage(data){
  return request({
    url: '/imageCrawler/deleteImage',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'post',
    data: data
  })
}

export function deleteBill(data){
  return request({
    url: '/imageCrawler/delete',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'post',
    data: data
  })
}
